};
#ifdef G_ENABLE_DEBUG
+typedef struct {
+ GQuark frames;
+} ProfileCounters;
+
typedef struct {
GQuark cpu_time;
GQuark gpu_time;
GskVulkanGlyphCache *glyph_cache;
#ifdef G_ENABLE_DEBUG
+ ProfileCounters profile_counters;
ProfileTimers profile_timers;
#endif
};
gsk_vulkan_render_draw (render, self->sampler);
#ifdef G_ENABLE_DEBUG
+ gsk_profiler_counter_inc (profiler, self->profile_counters.frames);
+
cpu_time = gsk_profiler_timer_end (profiler, self->profile_timers.cpu_time);
gsk_profiler_timer_set (profiler, self->profile_timers.cpu_time, cpu_time);
gsk_ensure_resources ();
#ifdef G_ENABLE_DEBUG
+ self->profile_counters.frames = gsk_profiler_add_counter (profiler, "frames", "Frames", FALSE);
self->profile_timers.cpu_time = gsk_profiler_add_timer (profiler, "cpu-time", "CPU time", FALSE, TRUE);
#endif
}